package com.niit.session12.abstr;

import com.niit.session12.inter.Animal;
//接口也是解决Java单继承缺陷的一个方法
public class Dog extends Animal implements Swim{

	@Override
	public void eat() {
		System.out.println("骨头");
		
	}

	@Override
	public void swim() {
		System.out.println("狗刨");
		
	}
	
	

}
